home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / cf / install.in < prev    next >
Encoding:
Text File  |  1994-09-05  |  2.8 KB  |  79 lines

  1. # -----------------------------------------------------------------------
  2. # $Id: install.in,v 1.10 1994/09/05 07:41:52 mjl Exp $
  3. #
  4. # Maurice LeBrun
  5. # IFS, University of Texas at Austin
  6. # 14-Jul-1994
  7. #
  8. # Make assignments and targets for installation under Unix.
  9. #
  10. # It is recommended that you use a dedicated directory such as
  11. # /usr/local/plplot (read the FAQ on this topic).  The install directory
  12. # will be created if necessary, as will subdirectories bin, doc, examples,
  13. # include, lib, man (eventually), and tcl.
  14. #
  15. # Notes: 
  16. #    if Tk support is not included, TK_INSTALL will be null.
  17. #    if Tcl support is not included, TCL_INSTALL will be null.
  18. #
  19. # -----------------------------------------------------------------------
  20.  
  21. install: install_lib install_utils $(TCL_INSTALL) $(TK_INSTALL) install_demos
  22.  
  23. install_lib:
  24.     -if [ ! -d $(INCLUDE_DIR) ] ; then mkdir -p $(INCLUDE_DIR); fi
  25.     -if [ ! -d $(LIB_DIR) ] ; then mkdir -p $(LIB_DIR); fi
  26.     -if [ ! -d $(DOC_DIR) ] ; then mkdir -p $(DOC_DIR); fi
  27.     -if [ ! -d $(BIN_DIR) ] ; then mkdir -p $(BIN_DIR); fi
  28.     -if [ ! -d $(INFO_DIR) ] ; then mkdir -p $(INFO_DIR); fi
  29.     -cd ../lib; cp libplplot* *.fnt *.map $(LIB_DIR)
  30.     -$(RANLIB) $(LIB_DIR)/libplplot*.*
  31.     -cd ..; cp README README.1st Changes.log COPYRIGHTS FAQ ToDo mklinks \
  32.         $(DOC_DIR)
  33.     -if [ ! -f $(DOC_DIR)/README.local ] ; then \
  34.         cp ../doc/README.local $(DOC_DIR); fi
  35.     -cp ../doc/*.info $(INFO_DIR)
  36.     -cd ../scripts; cp pl* $(BIN_DIR)
  37.     -cd ../include; \
  38.     cp plplotP.h plplot.h plplotX.h plplotTK.h \
  39.        plevent.h plstream.h pdf.h tclMatrix.h \
  40.         $(INCLUDE_DIR)
  41.  
  42. install_demos:
  43.     -if [ ! -d $(DEMOS_DIR) ] ; then mkdir -p $(DEMOS_DIR); fi
  44.     -if [ ! -d $(DEMOS_DIR)/C ] ; then mkdir -p $(DEMOS_DIR)/C; fi
  45.     -if [ ! -d $(DEMOS_DIR)/f77 ] ; then mkdir -p $(DEMOS_DIR)/f77; fi
  46.     -if [ ! -d $(DEMOS_DIR)/tcl ] ; then mkdir -p $(DEMOS_DIR)/tcl; fi
  47.     -if [ ! -d $(DEMOS_DIR)/tk ] ; then mkdir -p $(DEMOS_DIR)/tk; fi
  48.     -cp Makedemo $(DEMOS_DIR)/Makefile
  49.     -$(LN) $(DEMOS_DIR)/Makefile $(DEMOS_DIR)/C
  50.     -$(LN) $(DEMOS_DIR)/Makefile $(DEMOS_DIR)/f77
  51.     -$(LN) $(DEMOS_DIR)/Makefile $(DEMOS_DIR)/tk
  52.     -cp ../examples/C/* $(DEMOS_DIR)/C
  53.     -cp ../examples/f77/* $(DEMOS_DIR)/f77
  54.     -cp ../examples/tcl/* $(DEMOS_DIR)/tcl
  55.     -cp ../examples/tk/* $(DEMOS_DIR)/tk
  56.  
  57. install_utils:
  58.     $(LDC) $(LDC_FLAGS) plrender$O $(LIB_INSTALL) \
  59.         -o plrender$E $(LDC_LIBS)
  60.     $(LDC) $(LDC_FLAGS) pltek$O $(LIB_INSTALL) \
  61.         -o pltek$E $(LDC_LIBS)
  62.     -strip plrender$E pltek$E
  63.     -cp plrender$E pltek$E $(BIN_DIR)
  64.  
  65. install_tcl:
  66.     $(LDC) $(LDC_FLAGS) pltcl$O $(LIB_INSTALL) \
  67.         -o pltcl$E $(LDC_LIBS)
  68.     -strip pltcl$E
  69.     -cp pltcl$E $(BIN_DIR)
  70.  
  71. install_tk:
  72.     -if [ ! -d $(TCL_DIR) ] ; then mkdir -p $(TCL_DIR); fi
  73.     $(LDC) $(LDC_FLAGS) plserver$O $(LIB_INSTALL) \
  74.         -o plserver$E $(LDC_LIBS)
  75.     -strip plserver$E
  76.     -cp plserver$E $(BIN_DIR)
  77.     -cd ../drivers/tk; cp *.tcl *.pal tclIndex $(TCL_DIR)
  78.  
  79.